package entity.myEnum;

import entity.Users;

public enum Role {

    admin(),
    doctor(),
    patient();

    Role() {
    }

    public static void main(String[] args) {
        Users users = new Users();
        users.setRole(Role.admin);
        System.out.println(users.getRole());
        System.out.println(users.getRole().ordinal());
        System.out.println(users.getRole().name());
    }

}
